
<form id="form_add"><input type="hidden" name="id" value="{[$smarty.request.id]}" />
<table>
	<tr>
		<td align="right">客户：</td>
		<td colspan="3"><input type="text" name="customer" id="customer" value="" size="20" title="{[$t.customer]}"> <a href="javascript:void(0)"
			id="customer_x" onclick="Common.toggle(this, '#label_linkman_a')(this)" class="ui-icon ui-icon-circle-triangle-w"
			style="display: inline-table"></a></td>
	</tr>
	<tr id="label_linkman_a">
		<td></td>
		<td colspan="3">{[include file="contact/customer/_linkman.tpl"]}</td>
	</tr>
	<tr>
		<td width="20%" align="right">事由：</td>
		<td width="80%" colspan="3"><textarea rows="2" name="name" id="name" cols="55"></textarea></td>
	</tr>
	<tr>
		<td align="right">负责人：</td>
		<td><input type="text" name="emp" id="emp" value="" size="12" title="{[$t.emp_|emp:'负责人']}"> <input type="checkbox" name="t_emp" id="t_emp"
			value="{[$smarty.session.id]}:{[$smarty.session.name]}"> 自己</td>
	</tr>
	<tr>
		<td align="right">期限：</td>
		<td colspan="3"><input type="text" name="day" id="day" size="12" value=""> <select name='day_t' id='day_t'>
      {[html_options options=$day_option selected=-]}
      </select></td>
	</tr>
	<tr>
		<td align="right">期间：</td>
		<td colspan="3"><input type="text" name="date1" id="date1" value="{[$t1|date_format:'%Y-%m-%d']}" size="12"> 至 <input type="text"
			name="date2" id="date2" value="{[$t2|date_format:'%Y-%m-%d']}" size="12"></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td><textarea rows="4" name="content" cols="55"></textarea></td>
	</tr>
</table>
</form>

<script type="text/javascript" src="js/customer/visit/add.js?r={[$smarty.now]}"></script>
